
#ifndef TV_UTILS_H
#define TV_UTILS_H

#include <string>

namespace tv {
// Get boolean value from named environment variable.
bool GetBoolenEnv(const char *env_name, bool default_value = false);

// Get float value from named environment variable.
float GetFloatEnv(const char *env_var, float default_value);

// Given number of bytes, return a human-readable version of that
// (e.g. "13.2 MiB").
std::string HumanReadableByteValue(int64_t byte_count);
} // namespace tv

#endif // TV_TERMUTILS_H
